<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->load->view('include/html_head')?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('include/header')?>
	<?php $this->load->view('include/menu')?>
	<div id="page">
		<div id="content">
		<?php $this->load->view('include/sub_navi')?>
			<div class="post">
				<p class="meta">新闻预览</p>
				<div class="entry">
					<div class="news preview">
					<ul id='title'>
					  	<h2><?php echo $news_detail['title']?></h2>
					</ul>
					<ul id='info'>
						<li><span><a title='关于社联宣传部' href='<?php echo ASSOCIATION_ABOUT_PATH . ASSOCIATION_XCB_CID ?>'>社联宣传部</a> <?php echo $news_detail['poster_name'];?> <?php echo date("Y年m月d日 h:iA", $news_detail['create_time'])?></span> <span style='font-weight: bold;'><?php echo $this->common_data->_get_news_announcement_status_by_cid($news_detail['is_published'])?></span></li>
					</ul>
					<ul id='description'>
					  	<li><span><?php echo $news_detail['description']?></span></li>
					</ul>
					<ul id='contents'>
						<li><?php echo $news_detail['contents']?></li>
					</ul>
					<ul id='view_count'>
						<li>【已有<?php echo $news_detail['view_count']?>人阅读此新闻】</li>
					</ul>
					</div>
				    <?php if ($news_detail['is_published'] == NOT_PUBLISHED):?>
			    <a class='anchor_button' href="<?php echo BACKEND_ASSOCIATION_NEWS_PUBLISH_PATH . $news_detail['id']?>" >发布新闻</a>
			    <a class='anchor_button' href="<?php echo BACKEND_ASSOCIATION_NEWS_EDIT_PATH . $news_detail['id']?>" >修改草稿</a>
				<?php else :?>
				<a class='anchor_button' href="<?php echo BACKEND_ASSOCIATION_NEWS_EDIT_PATH . $news_detail['id']?>" >修改新闻</a>
				<?php endif;?>
				<a class='anchor_button' onclick="history.back(-1);" >返回</a>
				</div>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<?php $this->load->view('include/side_bar')?>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
<?php $this->load->view('include/footer_content')?>
<?php $this->load->view('include/footer')?>
</body>
</html>
